package net.jalbum.filters;


public class BoxControl extends ResizableObjectControl {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3634464976355610662L;
	protected BoxPanel boxPanel;
	protected double boxWidth, boxHeight;
	
	public BoxControl(){
	}
	
	public BoxControl(BoxPanel boxPanel){
		init(boxPanel);
		
		addResizableControls();
	}
	
	protected void init(BoxPanel boxPanel) {
		this.boxPanel = boxPanel;
		super.init(boxPanel);
	}
	
	public void update(double x1, double y1, double boxWidth, double boxHeight){
		this.X1 = x1;
		this.Y1 = y1;

		this.boxWidth = boxWidth;
		this.boxHeight = boxHeight;
	}

	public double getBoxWidth() {
		return boxWidth;
	}


	public void setBoxWidth(double boxWidth) {
		this.boxWidth = boxWidth;
	}


	public double getBoxHeight() {
		return boxHeight;
	}


	public void setBoxHeight(double boxHeight) {
		this.boxHeight = boxHeight;
	}

}

